import 'package:flutter/material.dart';
import 'package:myapp/_widget/swiper.dart';

class MovieSwipert extends StatelessWidget {
  final List<String> coverList = [
    './images/1.jpg',
    './images/2.jpg',
    './images/3.jpg',
    './images/1.jpg',
    './images/2.jpg',
    './images/3.jpg',
  ];
  MovieSwipert({super.key});
  @override
  Widget build(BuildContext context) {
    return Swiper(
      height: 250,
      onCurrentIndexChange: (index) {},
      showIndicator: true,
      indicatorAlignment: Alignment.bottomCenter,
      indicatorMainAxisAlignment: MainAxisAlignment.center,
      auto: true,
      loop: true,
      animatedDuration: const Duration(milliseconds: 200),
      duration: const Duration(milliseconds: 3000),
      children:
          coverList.map((e) => Image.asset(e, fit: BoxFit.cover)).toList(),
    );
  }
}
